#ifndef __STATEPARSER_H__
#define __STATEPARSER_H__

#include <iostream>
#include <vector>
#include "tinyxml.h"
#include "GameObject.h"

class GameObject;

class StateParser{
    public:
        bool parseState(const char * stateFile,
                        std::string stateID,
                        std::vector<GameObject*> *pObjects,
                        std::vector<std::string> *pTextureIDList);

    private:
        void parseObjects(TiXmlElement * pStateRoot,
                          std::vector<GameObject*> *pObjects);
        void parseTextures(TiXmlElement * pStateRoot,
                         std::vector<std::string> * pTextureID
                         );
};

#endif
